package com.codebuffer.nowcoder;

public class ReplaceSpaces {
    public static void main(String[] args) {
        String s = "We Are Happy";
        String s1 = replaceSpace(s);
        System.out.println(s1);
    }
    public static String replaceSpace (String s) {
        String replace = s.replace(" ", "%20");
        return replace;
    }
}
